//
//  CarShopFooterView.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/4/12.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "CarShopFooterView.h"

@interface CarShopFooterView()

@property (nonatomic,weak) UILabel *freightLab;

@end

@implementation CarShopFooterView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        UILabel *freightLab = [[UILabel alloc]initWithFrame:CGRectMake(ScreenW-200-10, 10, 200, 20)];
        freightLab.textColor = [UIColor blackColor];
        freightLab.font = Font(14);
        freightLab.text = @"运费价格:";
        freightLab.textAlignment = NSTextAlignmentRight;
        self.freightLab = freightLab;
        [self.contentView addSubview:freightLab];
    }
    return self;
}
- (void)setModel:(BuyCarModel *)model
{
    _model = model;
    self.freightLab.text = [NSString stringWithFormat:@"运费价格:¥%.2f元",model.freight];
}


@end
